const jade = require('jade');

//这次返回值是渲染好的参数
var str = jade.renderFile('./views/2.jade',{pretty:true});
console.log(str)